html {
  font-size: 100px;
}
html,
body,
#app {
  height: 100%;
  overflow: hidden;
}
#app {
  position: relative;
  margin: 0 auto;
  max-width: 750px;
}
/* 公共样式 */
.text-clip {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
/* 背景 */
.bg-image,
.bg-mark {
  position: absolute;
  top: -0.2rem;
  left: -0.2rem;
  width: 120%;
  height: 120%;
}
.bg-image {
  z-index: -2;
  background: url('../images/bg.jpg') no-repeat;
  background-size: cover;
  filter: blur(7px);
}
.bg-mark {
  z-index: -1;
  background: rgba(0, 0, 0, 0.5);
}
/* 头部 */
.header-box {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.3rem;
  width: 100%;
  height: 2rem;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-box .music-btn {
  display: none;
  width: 0.7rem;
  height: 0.7rem;
  background: url('../images/music.svg');
  background-size: 100% 100%;
}
.header-box .music-btn.move {
  animation: music-move 1s linear 0s infinite both;
}
.header-box .base-info {
  position: relative;
  width: 6.1rem;
}
.header-box .base-info .pic {
  position: absolute;
  display: none;
  top: 0;
  left: 0;
  width: 1.4rem;
  height: 1.5rem;
}
.header-box .base-info .title,
.header-box .base-info .author {
  margin-left: 1.5rem;
  line-height: 0.7rem;
  font-size: 0.34rem;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.header-box .base-info .author {
  font-size: 0.3rem;
}
@keyframes music-move {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* 歌词 */
.main-box {
  box-sizing: border-box;
  padding-top: 2rem;
  padding-bottom: 2.12rem;
  height: 100%;
}
.main-box .lyric {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.main-box .lyric .wrapper {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  transform: translateY(0);
  transition: transform 0.3s;
}
.main-box .lyric .wrapper p {
  padding: 0 0.2rem;
  height: 1rem;
  line-height: 1rem;
  text-align: center;
  font-size: 0.3rem;
  color: rgba(255, 255, 255, 0.5);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.main-box .lyric .wrapper p.active {
  color: #31c27c;
  transition: color 0.3s;
}
/* 尾部 */
.footer-box {
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0 0.2rem;
  width: 100%;
  height: 2.12rem;
  overflow: hidden;
}
.footer-box .progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-box .progress .already,
.footer-box .progress .duration {
  width: 1rem;
  height: 0.92rem;
  line-height: 0.92rem;
  text-align: center;
  font-size: 0.24rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-box .progress .back {
  position: relative;
  height: 0.04rem;
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.5);
}
.footer-box .progress .back .rate {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: #31c27c;
  transition: width 0.1s;
}
.footer-box .download {
  display: block;
  margin: 0 auto;
  width: 4.26rem;
  height: 1rem;
  line-height: 1rem;
  border-radius: 0.5rem;
  background: url('../images/sprite_play.png') no-repeat #31c27c;
  background-size: 0.8rem 7rem;
  background-position: 0.2rem -5.82rem;
  font-size: 0.36rem;
  color: #fff;
  text-align: center;
  text-indent: 0.43rem;
}
.footer-box .download.active {
  background-color: #279962;
}
#myAudio {
  display: none;
}
